﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace XfTech.SmartTms.Vehicles.Dtos
{
    /// <summary>
    /// 添加车辆Dto
    /// </summary>
    public class CreateVehicleDto
    {
        /// <summary>
        /// 品牌型号
        /// </summary>
        [Required]
        [StringLength(40)]
        public string Brand { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        [Required]
        [StringLength(15)]
        public string LicensePlate { get; set; }

        /// <summary>
        /// 司机姓名
        /// </summary>
        [Required]
        [StringLength(10)]
        public string Driver { get; set; }

        /// <summary>
        /// 所属公司
        /// </summary>
        [Required]
        [StringLength(30)]
        public string Company { get; set; }

        /// <summary>
        /// 长（米）
        /// </summary>
        public float Length { get; set; }

        /// <summary>
        /// 宽（米）
        /// </summary>
        public float Width { get; set; }

        /// <summary>
        /// 高（米）
        /// </summary>
        public float Height { get; set; }

        /// <summary>
        /// 车辆颜色
        /// </summary>
        [Required]
        [StringLength(10)]
        public string Color { get; set; }

        /// <summary>
        /// 购置日期
        /// </summary>
        public DateTime BuyDate { get; set; }

        /// <summary>
        /// 营运证号
        /// </summary>
        [Required]
        [StringLength(30)]
        public string VehicleNo { get; set; }

        /// <summary>
        /// 保险到期日期
        /// </summary>
        public DateTime InsuranceDate { get; set; }

        /// <summary>
        /// 年检到期日期
        /// </summary>
        public DateTime AnnualCheckDate { get; set; }

        /// <summary>
        /// 保养公里数设置
        /// </summary>
        public int Maintenance { get; set; }

        /// <summary>
        /// 车辆照片
        /// </summary>
        [StringLength(255)]
        public string VehiclePhoto { get; set; }

        /// <summary>
        /// 保险卡照片
        /// </summary>
        [StringLength(255)]
        public string InsurancePhoto { get; set; }
    }
}
